package test3;

public class Owner {
    //创建狗对象
    Dog dog = new Dog("小白",70,6,"雪纳瑞");
    //创建企鹅对象
    Penguin penguin = new Penguin("小黑",60,5,"小企鹅");
    void feedDog(){//投喂
        dog.eat();
        dog.setHealth(dog.getHealth()+3);
    }
    void feedPenguin(){//投喂
        penguin.eat();
        penguin.setHealth(penguin.getHealth()+5);
    }
}
